// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import vuex from 'vuex'
import store from './store'

// 引入全局css
import './assets/scss/style.scss';
// 按需引入vue-awesome图标
import Icon from 'vue-awesome/components/Icon';
import 'vue-awesome/icons/chart-bar.js';
import 'vue-awesome/icons/chart-area.js';
import 'vue-awesome/icons/chart-pie.js';
import 'vue-awesome/icons/chart-line.js';
import 'vue-awesome/icons/align-left.js';
// 引入地图数据
import 'echarts/map/js/province/fujian.js';

Vue.use(vuex)

// element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

// d3
import * as d3 from 'd3'
Vue.prototype.$d3 = d3

// axios
import axios from './api/axios'
Vue.prototype.$axios = axios
Vue.config.productionTip = false

// echarts
import echarts from 'echarts'
//5.x 引用方式为按需引用
//希望使用5.x版本的话,需要在package.json中更新版本号,并切换引用方式
//import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false;

import Chat from 'jwchat'
Vue.use(Chat)

import dataV from '@jiaminghi/data-view';

// 全局注册
Vue.component('icon', Icon);
Vue.use(dataV);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  render: (h) => h(App),
}).$mount('#app')
